<template>
  <div style="width:100%;height:1000px" class="itemlist">
    <el-row type="flex" justify="center"  style="width:100%;height:100%">
 <el-input style="width:300px" v-model="title">
    </el-input>
    <el-button size="small" style="height:40px" @click="additem">搜索</el-button>
    </el-row> 
  </div>
</template>


<script>
export default {
data(){
  return{
    title:''
  }
},
methods:{
additem(){
  this.$router.push(`/list?title_contains=${this.title}`)
}
}
}
</script>


<style>
.itemlist{
  background-image:url('~@/assets/code.png');
  background-size: 100% 100%;
}
</style>